<?php
namespace Swiftx\System;
/**
 * 框架异常基类
 *
 * @author      胡永强<odaytudio@gmail.com>
 * @since       2014-11-06
 * @copyright   Copyright (c) 2014-2015 Swiftx Inc.
 *
 * @package     Swiftx\System
 *
 * @property int $Code               异常代碼
 * @property string $Message         异常消息
 * @property string $File            异常文件
 * @property int $Line               异常行号
 * @property Exception $Previous     前置异常
 * @property array $Trace            异常堆栈
 * @property string $TraceAsString   异常堆栈
 */
class Exception extends \Exception {

    /**
     * 魔术方法Get
     * @access Attribute
     * @param String $name
     */
    public function __get($name){
        $this->getTrace();
        $this->getTraceAsString();
        $method = 'get'.$name;
        return $this->$method();
    }
	
}

